package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.domain.entity.Article;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

    List<Article> getHotArticle();


    List<Article> getAllArticlesByStatus();

    List<Article> articleList(@Param("pageNum") Integer pageNum,@Param("pageSize") Integer pageSize, @Param("categoryId") Integer categoryId);

    Article getArticleById(Integer id);

}
